/*
 * @Author: 107w 8801453+lu-shangru@user.noreply.gitee.com
 * @Date: 2023-04-04 16:06:16
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-05-06 16:16:09
 * @Description:
 *
 * Copyright (c) 2023 by 107w, All Rights Reserved.
 */
import request from '@/utils/request'

export function menuAdd(data) {
  return request({
    url: '/api/menu/add',
    method: 'post',
    data
  })
}
export function menuUpdate(data) {
  return request({
    url: '/api/menu/update',
    method: 'post',
    data
  })
}
export function menuDelete(data) {
  return request({
    url: '/api/menu/delete',
    method: 'delete',
    data
  })
}
export function menuGetContent(params) {
  return request({
    url: '/api/menu/getContent',
    method: 'get',
    params
  })
}
export function menuUpdateContent(params) {
  return request({
    url: '/api/menu/updateContent',
    method: 'post',
    params
  })
}
export function fileUpload(data) {
  return request({
    url: '/api/upload',
    method: 'post',
    data
  })
}

